package com.myproject.io;

import java.io.*;

public class Start {

    private char leftoverChar;
    private boolean haveLeftoverChar;



    public static void main(String[] args) throws IOException {

        InputStreamReader isr = new InputStreamReader(new FileInputStream("E:/test/123.txt"),"GBK");
        isr.read();
        Start start = new Start();
        int i = start.read(2);
        System.out.println(i);
    }

    private int read(int i) {

        char[] var2 = new char[2];
        int var3 = i;
        switch(var3) {
            case -1:
                return -1;
            case 0:
            default:
                assert false : var3;
                return -1;
            case 2:
                this.leftoverChar = var2[1];
                this.haveLeftoverChar = true;
            case 1:
                return var2[0];
        }
    }
}
